package exam;

public class duanxuan {

	
	public void duanxuant(){
		String str="ABCD";
		  if(str.indexOf("ABC")!=-1){
		   System.out.println("包含");
		  }else{
		   System.out.println("不包含");
		  }

	}
	
	
}
